Skip to content

node: Remove minimum TxID length#4797

Open
johnsaigle wants to merge 2 commits into
wormhole-foundation:mainfrom
johnsaigle:fix-no-min-tx-id-len
Open

node: Remove minimum TxID length#4797
johnsaigle wants to merge 2 commits into
wormhole-foundation:mainfrom
johnsaigle:fix-no-min-tx-id-len

Conversation

@johnsaigle

Copy link
Copy Markdown
Contributor

#4428 added validation for Message Publications. This included a minimum Tx ID length check. However, this should not have been added as the Tx ID should be controlled by each watcher rather than enforced in the Message Publication itself.

In theory there is a current minimum length for TxIDs across all of the implementations but we should keep this field flexible.

Right now, Aptos is likely not marshalling correctly because its TxID is based on a uint64 value. In some cases it may be 'normalized' i.e. padded to 32 bytes to conform to other chains' IDs, but this shouldn't be necessary and enforced from a distance.

@johnsaigle
johnsaigle marked this pull request as ready for review May 7, 2026 18:12
mdulin2
mdulin2 previously approved these changes Jun 15, 2026
Comment thread node/pkg/common/chainlock.go Outdated
- include all fields in size check
- add unit test to catch regressions in this area
- move constant near others so divergences are easier to track
- move AddressLength constant to where Address is defined
@johnsaigle
johnsaigle force-pushed the fix-no-min-tx-id-len branch from 187a2e9 to ad5cb34 Compare June 16, 2026 11:16
@johnsaigle

Copy link
Copy Markdown
Contributor Author

@mdulin2 nice spot, I fixed the bug in the recent commits and also added a unit test for that particular case.

@johnsaigle
johnsaigle requested a review from mdulin2 June 16, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants